<crm-main-nav  nav-c="manage" page-title="假期设置"></crm-main-nav>
<div class="container ng-scope">
  <ol class="breadcrumb">
    <li>CRM系统</li>
    <li>系统管理</li>
    <li class="active">假期设置</li>
  </ol>
</div>
<!-- <div ng-view></div> -->
<crm-panel title="人员管理" ng-app="controllers">
	<div ng-controller="managePeopleController">
	    <div class="panel-body"> 
			<form class="form-horizontal" ng-submit="staffSearch()" role="form" >
				<div class="form-group row">
					<label class="col-sm-1 control-label">分公司：</label>
					<div class="col-sm-2">
						<company-select current-id="company"></company-select>
					</div>
					<div class="col-sm-1">
						<button type="submit" class="btn btn-primary">确定</button>
					</div>
				</div>
			</form>
	      <!-- 结果表格 -->
		    <form method="get" ng-submit="submitForm()">			
		      	<table class="table table-bordered" id="table_list">
			        <thead>
						<tr>        
							<th>姓名</th>
							<th>分公司</th>
							<th>职位</th>
							<th>人员类型</th>
							<th>联系方式</th>
							<th>操作</th>
						</tr>
			        </thead>
			        <tbody>
			          	<tr class="col" ng-repeat="v in data track by $index" current-id="formData.branch_company_id">
				            <td>{{v.name}}</td>
				            <td>{{v.company_name}}</td>
				            <td>{{v.position}}</td>
				            <td ng-if="v.type==1">销售人员</td>
				            <td ng-if="v.type==2">渠道经理</td>
				            <td ng-if="v.type==3">经理</td>
				            <td ng-if="v.type==4">副总</td>
				            <td ng-if="v.type==5">超级管理员</td>
				            <td>{{v.phone}}</td>
				            <td>
				            	<input type="button" class="btn btn-default btn-sm" value="设置" ng-click="set(v)">  	
			            	</td>
			          	</tr>
			        </tbody>
		      	</table>
	      	</form>
	    </div>
	</div>
</crm-panel>